<?php

namespace app\common\model;

use app\common\service\ModelService;

/**
 * 应用
 * Class ApplicationsModel
 * @package app\common\model
 */
class ApplicationsModel extends ModelService
{

    // 表名
    protected $name = 'applications';

    public function getApiHost($app_sn)
    {
        if (empty($app_sn)) {
            return '';
        }
        $api_host = $this->getValue(['app_sn' => $app_sn], 'api_host');
        return $api_host;
    }

}
